package com.njtoyo.taxi.admin.mapper.master.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum MemberCategory {
    driver(0, "司机"),
    customer(1, "用户"),
    merchant(2, "商家");

    @EnumValue
    private final int code;
    private final String desc;

    MemberCategory(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
